package com.logistics.erp.service;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.logistics.erp.entity.domain.ErpUser;
import com.logistics.erp.mapper.ErpUserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@DS("erp")
@Service
public class ErpUserService {

    @Autowired
    private ErpUserMapper erpUserMapper;

    /**
     * 根据账户名获取Erp中的用户信息
     * @param account
     * @return
     */
    public ErpUser findUserByAccount( String account){
        return erpUserMapper.findUserByAccount(account);
    }

}
